import {Component, OnInit} from '@angular/core';
import {ActivatedRoute, Params} from '@angular/router';

@Component({
  selector: 'app-policy-analysis-chart',
  templateUrl: './policy-analysis-chart.component.html',
  styleUrls: ['./policy-analysis-chart.component.less']
})
export class PolicyAnalysisChartComponent implements OnInit {
  selectedIndex: number;
  selectedName = [
    '政策数量演进',
    '政策地域分布',
    '发布机构分布',
    '政策扩散',
    '政策热点聚焦',
    '机构合作发文'
  ];
  tabList = [
    {name: '政策矩阵', router:'/home', active: false},
    {name: '政策文件', router:'/magic-science-innovate', active: false},
    {name: '政策专题', router:'/policy-analysis-matrix', active: false},
    {name: '计量分析', router:'/policy-analysis-chart', active: true},
  ];


  constructor(private route: ActivatedRoute) {
  }

  ngOnInit(): void {
    // this.route.queryParams.pipe().subscribe((params: Params) => {
    //   if (params.name) {
    //     this.selectedIndex = this.selectedName.indexOf(params.name);
    //   }
    // });
  }

}
